package com.relytosoft.mizar.analyze.common.utils;

import cn.hutool.core.date.DateUtil;

import java.util.Date;

/**
 * @author wss
 * @version 1.0
 * @date 2022/5/17 14:44
 */
public class IndexUtil {

    private static final String PATTERN = "yyyy-MM";

    public static String toMonthIndex(String indexName) {
        return indexName + DateUtil.format(new Date(), PATTERN);
    }

}
